//
//  ZhangchuXueYuanVC.m
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/23.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ZhangchuXueYuanVC.h"
#import "UMSocial.h"

@interface ZhangchuXueYuanVC ()

@end

@implementation ZhangchuXueYuanVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIWebView *wv = [[UIWebView alloc] initWithFrame:CGRectMake(0, -40, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height + 30)];
    /**<  取消回弹效果 */
    wv.scrollView.bounces = NO;
    
    
    
    
    
    // 加载网址
    NSString *url =@"http://h5.izhangchu.com/topic_view/index.html?&topic_id=166&from=app&app_exitpage=1&";
    
    [wv loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
    [self.view addSubview:wv];
    [wv release];
    
    UIBarButtonItem * anniu = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:(UIBarButtonSystemItemSearch) target:self action:@selector(anniuAction:)];
    self.navigationItem.rightBarButtonItem = anniu;
    
    
    
}

-(void)anniuAction:(UIBarButtonSystemItem *)button
{
    [UMSocialSnsService presentSnsIconSheetView:self
                                         appKey:@"56a87652e0f55ae402002a76"
                                      shareText:@"http://h5.izhangchu.com/topic_view/index.html?&topic_id=166&from=app&app_exitpage=1&"
                                     shareImage:[UIImage imageNamed:@"icon.png"]
                                shareToSnsNames:[NSArray arrayWithObjects:UMShareToSina,UMShareToQzone,UMShareToLWSession,UMShareToLWTimeline,nil]
                                       delegate:nil];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
